package com.lyjStudy.train.business.controller;

import com.lyjStudy.train.business.service.TestService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Resource
    private TestService testService;

    @GetMapping("/hello")
    public String hello() throws InterruptedException {
        testService.hello2();
        return "Hello World! Business!";
    }
}
